package com.ossjk.qlh.system.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ossjk.core.base.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author chair
 * @since 2020-02-01
 */
@ApiModel(value = "用户")
public class User extends BaseEntity<User> {

	private static final long serialVersionUID = 1L;

	/**
	 * 登录名
	 */
	@ApiModelProperty(value = "登录名", required = true)
	@TableField("lname")
	private String lname;
	/**
	 * 头像
	 */
	@ApiModelProperty(value = "头像")
	@TableField("head")
	private String head;
	/**
	 * 姓名
	 */
	@ApiModelProperty(value = "姓名", required = true)
	@TableField("name")
	private String name;
	/**
	 * 密码
	 */
	@ApiModelProperty(value = "密码", required = true)
	@TableField("pwd")
	private String pwd;
	/**
	 * 生日
	 */
	@ApiModelProperty(value = "生日")
	@TableField("birth")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JSONField(format = "yyyy-MM-dd")
	private Date birth;
	/**
	 * 性别 1-男、2-女
	 */
	@ApiModelProperty(value = "性别 1-男、2-女", required = true)
	@TableField("sex")
	private Integer sex;
	/**
	 * 邮件
	 */
	@ApiModelProperty(value = "邮件", required = true)
	@TableField("email")
	private String email;
	/**
	 * 手机
	 */
	@ApiModelProperty(value = "手机", required = true)
	@TableField("mobile")
	private String mobile;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	@TableField("remarks")
	private String remarks;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getLname() {
		return lname;
	}

	public void setLname(String lname) {
		this.lname = lname;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public Date getBirth() {
		return birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getHead() {
		return head;
	}

	public void setHead(String head) {
		this.head = head;
	}

	@Override
	public String toString() {
		return "User [lname=" + lname + ", head=" + head + ", name=" + name + ", pwd=" + pwd + ", birth=" + birth + ", sex=" + sex + ", email=" + email + ", mobile=" + mobile + ", remarks=" + remarks + "]";
	}

}
